﻿#include "CmdThreeDSurfacePlotSidebarDataOprationChanged.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"

namespace PostCommand
{
    CmdThreeDSurfacePlotSidebarDataOprationChanged::CmdThreeDSurfacePlotSidebarDataOprationChanged()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdThreeDSurfacePlotSidebarDataOprationChanged::~CmdThreeDSurfacePlotSidebarDataOprationChanged()
    {
    }

    bool CmdThreeDSurfacePlotSidebarDataOprationChanged::execute()
    {
        //bool _success = false;
        emit IBaseSignalInstance->signal_threeDSurfacePlotSidebarDataOprationChanged(m_windowId, m_isLoged, m_isNormalized);
        return true;
    }

    void CmdThreeDSurfacePlotSidebarDataOprationChanged::undo()
    {
    }

    void CmdThreeDSurfacePlotSidebarDataOprationChanged::redo()
    {
        // execute();
    }

    void CmdThreeDSurfacePlotSidebarDataOprationChanged::setThreeDSurfacePlotSidebarDataOprationChanged(int windowId, bool isLoged, bool isNormalized)
    {
        m_windowId = windowId;
        m_isLoged = isLoged;
        m_isNormalized = isNormalized;
    }

} // namespace PostCommand
